/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.reddys.rad.inventory.service;

import com.reddys.rad.inventory.db.Purchase;
import static com.reddys.rad.inventory.service.PurchaseReturnService.em;
import com.reddys.rad.inventory.utils.EntityManagerImpl;
import java.util.Iterator;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;

/**
 *
 * @author Administrator
 */
public class StockMovementHistoryService {
    static EntityManager em;
    public static List getStockMovementDetails(){
        em = EntityManagerImpl.getEntityManager();
        Query query=em.createNamedQuery("StockDetails.findAll");
          List list= (List) query.getResultList();
        return list;
    }
}
